package com.book.exception;

/**
 * @Author: 125715
 * @Package: com.book.exception
 * @Date: 2025/4/2 19:05
 * @Description: 异常类
 */

import lombok.Data;
import org.slf4j.helpers.MessageFormatter;

/**
 * @description: 自定义异常类
 * @Author yl
 * @Date 2024/3/13 9:43
 */
@Data
public class BusinessException extends RuntimeException{

    public BusinessException(String message){
        super(message);
    }

    public BusinessException(String msg, Object... objs) {
        super(MessageFormatter.arrayFormat(msg, objs).getMessage());
    }
}
